using Pegasus.Diagnostics;
using System;

namespace Pegasus.Monitoring
{
	/// <summary>
	/// Summary description for AppMonitorUnhandledExceptions.
	/// </summary>
	internal class AppMonitorUnhandledExceptions
	{
		// Local isntance values
		private UnhandledExceptions m_exceptions = null;

		/// <summary>
		/// 
		/// </summary>
		public AppMonitorUnhandledExceptions()
		{
			m_exceptions = new UnhandledExceptions();
			m_exceptions.OnUnhandledException += new UnhandledExceptionHander( Exceptions_OnUnhandledException );
		}

		/// <summary>
		/// Called when there is an unhandled excpetion processed by the runtime.
		/// </summary>
		/// <param name="e"></param>
		private void Exceptions_OnUnhandledException( Exception e )
		{
			//AppMonitor.Exception( e, "Unhandled System Exception" );
		}
	}
}
